﻿@{
    ViewBag.Title = "Index";
}
@using WXPackage
<h2>菜单管理</h2>
<p>
    添加菜单
    @{ 
        MenuButtonData item = new MenuButtonData();
        item.name = "微工具集2";
        item.type = "view";
        item.url = "http://www.gongjuji.net";
        MenuManage _menu = new MenuManage();
        //if (_menu.Add(item))
        //{
        //    this.Write("添加成功");
        //}
        //更新到微信服务器
        this.Write(_menu.GetJson_Remote());
        if (_menu.PostData_Remote())
        {
            this.Write("更新到服务器成功");
        }
    }
</p>
<p>
    当前现在的菜单列表:
    @Html.Action("QueryMenu", "Service")
</p>

